import xmlrpclib
def main():
  r = xmlrpclib.Server('http://localhost:7777/')
  print "RemoteServer.foo returned %s" % (r.foo("hello world"))
  print "RemoteServer.add returned %d" % (r.add(10,20))
  sum = r.add(1, 2)


if __name__ == "__main__":
  main()
